﻿<!--主布局容器-->
<div id="cntr_Container">
    <div class="layui-layout-admin">

        <!--头部-->
        <div class="layui-header">

            <!--菜单伸缩/页面刷新-->
            <div class="layui-layout-left">
                <ul class="layui-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" click-event="flexible">
                            <i class="layui-icon layui-icon-shrink-right" id="icon_Flexible"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" click-event="refresh">
                            <i class="layui-icon layui-icon-refresh-3"></i>
                        </a>
                    </li>
                </ul>
            </div>


            <!--全屏展示/用户登录信息-->
            <div class="layui-layout-right">
                <ul class="layui-nav">
                    <li class="layui-nav-item">
                        <a href="javascript:;" click-event="fullScreen">
                            <i class="layui-icon layui-icon-screen-full"></i>
                        </a>
                    </li>

                    <i class="layui-nav-item" id="header_User"></i>

                </ul>
            </div>
        </div>

        <!--左侧菜单导航-->
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo" id="side_User"></div>

                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="menu_Side">
                    <li class="layui-nav-item  layui-nav-itemed">
                        <a href="javascript:;">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>主页</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="layui-this">
                                <a lay-href="/Admin/Manage/Console">控制台</a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a lay-href="/Admin/PostManage/Index">
                            <i class="layui-icon layui-icon-form"></i>
                            <cite>帖子列表</cite>
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon layui-icon-set"></i>
                            <cite>系统设置</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a lay-href="/Admin/RoleManage/Index">角色管理</a>
                            </dd>
                            <dd>
                                <a lay-href="/Admin/UserManage/Index">用户管理</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <!--页面标签区-->
        <div class="layadmin-pagetabs">

            <!--右侧下拉菜单（关闭当前/关闭其他/关闭全部）-->
            <div class="layadmin-tabs-control layui-icon layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;">
                            <dl class="layui-nav-child layui-anim-fadein">
                                <dd>
                                    <a href="javascript:;" click-event="closeThis">关闭当前标签页</a>
                                </dd>
                                <dd>
                                    <a href="javascript:;" click-event="closeOther">关闭其他标签页</a>
                                </dd>
                                <dd>
                                    <a href="javascript:;" click-event="closeAll">关闭所有标签页</a>
                                </dd>
                            </dl>
                        </a>
                    </li>
                </ul>
            </div>

            <!--页面标签选项卡-->
            <div class="layui-tab" lay-allowClose="true" lay-filter="layout-tab">
                <ul class="layui-tab-title" id="tab_Titles">
                    <li class="layui-this" lay-id="/Home/Console">
                        <i class="layui-icon layui-icon-home"></i>
                    </li>
                </ul>
            </div>

        </div>

        <!--主内容区-->
        <div class="layui-body" id="tab_Body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe src="@Url.Action("Index","PostManage")" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>

    </div>
</div>

<script type="text/html" id="tpl_Header_User">
    {{# if(d.IsLogin){ }}
    <a href="javascript:;">
        <img src="{{d.HeadImgUrl?d.HeadImgUrl:'/Content/image/headimg.jpg'}}" class="layui-nav-img" />
        <cite>{{d.NickName}}</cite>
    </a>
    <dl class="layui-nav-child">
        <dd>
            <a href="javascript:;" click-event="updateUserMsg">基本资料</a>
        </dd>
        <dd>
            <a href="javascript:;">修改密码</a>
        </dd>
        <hr />
        <dd>
            <a href="javascript:;" click-event="signOut">退出登录</a>
        </dd>
    </dl>
    {{# }else{ }}
    <a href="/Admin/AccountManage/Login">
        <i class="layui-icon layui-icon-release"></i>
        登录
    </a>
    {{# } }}
</script>

<script type="text/html" id="tpl_Side_User">
    {{# if(d.IsLogin){ }}
    <img src="{{d.HeadImgUrl?d.HeadImgUrl:'/Content/image/headimg.jpg'}}" />
    <p>{{d.NickName}}</p>
    {{# }else{ }}
    <img src="/Content/image/headimg.jpg" />
    <p>未登录</p>
    {{# } }}
</script>

<script type="text/javascript">

    layui.cache.module = {
        moduleName: 'home',
        pageName:'home'
    }

</script>
